// import Cookies from 'js-cookie'

// const TokenKey = 'Admin-Token'

// export function getToken() {
//   return Cookies.get(TokenKey)
// }

// export function setToken(token) {
//   return Cookies.set(TokenKey, token)
// }

// export function removeToken() {
//   return Cookies.remove(TokenKey)
// }

// export function removeToken() {
//   return Cookies.remove(TokenKey)
// }

export function getWhiteList() {
  return [
      '/',
      '/login',
  ]
}

export function removeToken() {
  return sessionStorage.removeItem("token")
}

export function removeUser() {
    return sessionStorage.removeItem("user")
}

export function removeUserId() {
    return sessionStorage.removeItem("userId")
}

export function getUserName(){
    return sessionStorage.getItem("user")?JSON.parse(sessionStorage.getItem("user")):'';

}
export function getUserId(){
    return sessionStorage.getItem("userId")?JSON.parse(sessionStorage.getItem("userId")):''

}
